<div class="form">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'product-category-form',
        'enableAjaxValidation' => false,
            ));
    ?>
    <?php echo $form->errorSummary($model); ?>
    <fieldset>
        <legend>产品信息</legend>
        <table cellspacing="0" cellpadding="0" class="Ftable">
            <tr>
                <th width="150"><?php echo $form->labelEx($model, 'name'); ?></th>
                <td><?php echo $form->textField($model, 'name', array('maxlength' => 6)); ?></td>
            <tr>
                <th></th>
                <td><?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?></td>
            </tr>
        </table>
    </fieldset>
    <?php $this->endWidget(); ?>
</div>